package com.daodway.designpattern.mediatorpattern.standard;
/**
 * 名称: 同事类
 * 描述: 同事类的抽象父类
 * 类型: JAVA
 * 最近修改时间：2014-08-18 14:30
 * @since  2014-08-18 14:30
 * @author zhoutanxin
 */ 
public abstract class Colleague {
    /* 持有中介者对象，每一个同事类都知道它的中介者对象 */
    private  Mediator mediator;

	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}

	public Mediator getMediator() {
		return mediator;
	}

	public Colleague(Mediator mediator) {
		super();
		this.mediator = mediator;
	}
    
}
